import request from "@/utils/request"

export const loginApi = (data) => {
    return request.post(`/login`, data)
}

export const showAllApi = (empNo, empName, role, page, pageSize) => {
    return request.get(`/user?empNo=${empNo}&empName=${empName}&role=${role}&page=${page}&pageSize=${pageSize}`)
}

export const addApi = (data) => {
    return request.post(`/user`, data)
}
export const showBackApi = (id) => {
    return request.get(`/user/${id}`)
}
export const updateApi = (data) => {
    return request.put(`/user`, data)
}
export const delApi = (ids) => {
    return request.delete(`/user?ids=${ids}`)
}